package cn.com.qiancheng.service;

import cn.com.qiancheng.dao.AddClassDao;
import cn.com.qiancheng.dao.TrinerClassDao;
import cn.com.qiancheng.dto.TrinerClass;

public class AddClassService {
	public int validate(String stuClass){
		int i = 0;
		TrinerClassDao dao = new TrinerClassDao();
		TrinerClass tClass = dao.sreachTrinerClass(stuClass);
		if(tClass!=null){
			return i;
		}
		AddClassDao aclass = new AddClassDao();
		i = aclass.addClass(stuClass);
		return i;
	}
}
